﻿using System;
using System.Drawing;
using MUnit;

namespace Fifteen
{
    class TestBitmapSplitter
    {
        [Setup]
        void Setup()
        {
            // This will be run once before each test method
        }

        [Test]
        void GetParts()
        {
            Bitmap bitmap = new Bitmap(200, 200);
            TBitmapSplitter splitter = new TBitmapSplitter(bitmap);
            splitter.Split(2, 4);

            Verify.Equals(new Size(100, 50), splitter[0, 0].Size);
        }

        [TearDown]
        void TearDown()
        {
            // This will be run once after each test method
        }
    }
}
